<?php

	if ( get_post_type() == 'page' )
	{
		?>
			<aside id="sidebar" class="span4 content sidebar">
			
				<!-- SEARCH - WIDGET -->
				<div class="search-widget clearfix">
				
					<?php
					
						if ( ! get_option( 'disable_page_search' ) )
						{
							?>
								<form method="get" action="<?php echo home_url( '/' ); ?>">
									<div class="input-append">
										<input type="text" id="appendedPrependedInput" name="s" size="16" class="span3" placeholder="<?php echo __( 'Enter keyword...', 'responsy' ); ?>" value="<?php the_search_query(); ?>"><input type="submit" id="searchsubmit" class="send" style="display: none;" value="Go">
									  </div>
								</form>
							<?php
						}
					
					?>
					
				</div>
				<!-- end SEARCH - WIDGET -->

				<!-- WIDGET -->
				<?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( "page_sidebar_1" ) ) : ?>
				<?php endif; ?>
				<!-- end WIDGET -->
			
				<!-- WIDGET -->
				<?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( "page_sidebar_2" ) ) : ?>
				<?php endif; ?>
				<!-- end WIDGET -->
				
				<!-- WIDGET -->
				<?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( "page_sidebar_3" ) ) : ?>
				<?php endif; ?>
				<!-- end WIDGET -->
				
			</aside>
		<?php
	}
	else
	{
		?>
			<aside id="sidebar" class="span4 content sidebar">
			
				<!-- SEARCH - WIDGET -->
				<div class="search-widget clearfix">
				
				<?php
				
					if ( ! get_option( 'disable_blog_search' ) )
					{
						?>
							<form method="get" action="<?php echo home_url( '/' ); ?>">
								<div class="input-append">
									<input type="text" id="appendedPrependedInput" name="s" size="16" class="span3" placeholder="<?php echo __( 'Enter keyword...', 'responsy' ); ?>" value="<?php the_search_query(); ?>"><input type="submit" id="searchsubmit" class="send" style="display: none;" value="Go">
								  </div>
							</form>
						<?php
					}
				
				?>
				
				</div>
				<!-- end SEARCH - WIDGET -->

				<!-- WIDGET -->
				<?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( "blog_sidebar_1" ) ) : ?>
				<?php endif; ?>
				<!-- end WIDGET -->
			
				<!-- WIDGET -->
				<?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( "blog_sidebar_2" ) ) : ?>
				<?php endif; ?>
				<!-- end WIDGET -->
				
				<!-- WIDGET -->
				<?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( "blog_sidebar_3" ) ) : ?>
				<?php endif; ?>
				<!-- end WIDGET -->
				
			</aside>
		<?php
	}
?>